﻿
namespace MyFurion.Application
{
    /// <summary>
    /// 系统参数配置仓储
    /// </summary>
    public class ConfigRepository:BaseRepository<ConfigInfo>,ITransient
    {
        /// <summary>
        /// 是否空表
        /// </summary>
        /// <returns></returns>
        public async Task<bool> IsEmptyData()
        {
            int count = await Context.Queryable<ConfigInfo>().Filter(null, true).CountAsync();
            return count == 0;
        }
    }
}
